<?
    require_once("base/BaseNewsletterForm.php");

    class NewsletterForm extends BaseNewsletterForm {

        private $log;

        public function __construct() {
            parent::__construct();
            $this->log =& LoggerManager::getLogger("NewsletterForm");
        }

        public function validate() {
            $errors = parent::validate();

            if(count($this->getLanguages()) == 0)
                $errors->add("languages",
                    new ActionMessage("errors.required", true, new ActionMessage("prompt.recipients", true)));

            return $errors;
        }

    }
?>